import { getRenderDataApi } from "../../utils/api";

const RenderModule = {
  namespaced: true,
  state: {
    RenderList: [],
  },
  mutations: {
    getRender(state, payload) {
      state.RenderList = payload.list;
    },
  },
  actions: {
    async getRenderAsync({ commit }, payload) {
      const res = await getRenderDataApi(payload);
      commit("getRender", res.result);
    },
  },
};

export default RenderModule;
